import axios from 'axios'

let axiosmock = axios.create({timeout:2000})

axiosmock.interceptors.request.use(function (config) {
  return config;
});

axiosmock.interceptors.response.use(function (response) {
  return response.data;
}, function (error) {
  return Promise.reject(error);
});

export default axiosmock;
